
import {Pipe, PipeTransform} from "@angular/core";

@Pipe({
  name:'dataImg',
})

export class DataImgPipe implements PipeTransform{

  transform(value:any,...args:any[]):any{
    if(typeof value == "string"){
      let decodeImgUrl = decodeURIComponent(value.slice(7)); //对url进行解码
      return decodeImgUrl;
    }

  }
}
